import request from '@/utils/request'
//新增
export function addHandle(data) {
  return request({
    url: 'internalInformation/add',
    method: 'post',
    data,
  })
}

//删除
export function deleteHandle(data) {
  return request({
    url: 'internalInformation/delete',
    method: 'post',
    data,
  })
}

//修改
export function editHandle(data) {
  return request({
    url: 'internalInformation/update',
    method: 'post',
    data,
  })
}

// 获取办公室
export function getOfficeLocationList(data) {
  return request({
    url: 'internalInformation/getOfficeLocation',
    method: 'post',
    data,
  })
}
// 获取学历
export function getEducationalBackgroundList(data) {
  return request({
    url: 'internalInformation/getEducationalBackground',
    method: 'post',
    data,
  })
}
// 推送
export function pushBackend(id) {
  return request({
    url: 'internalInformation/pushBackend',
    method: 'post',
    data: { id },
  })
}

export default {
  addHandle,
  editHandle,
  deleteHandle,
  getOfficeLocationList,
  getEducationalBackgroundList,
  pushBackend,
}
